Closed Bug 1119670 Opened 9 years ago Closed 9 years ago

Implement processing of scope member of web manifest

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: marcosc, Assigned: marcosc)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file, 1 obsolete file)

Implement support in the manifest processor for processing the scope member of a manifest.
Initial implementation of scope processor. 

Any idea how I push to try from git? Or how to use `git-push-to-try`? I don't know what parameters it's asking for :( Filed a bug on the tools people for help, but maybe you know?
Attachment #8546430 - Flags: review?(ehsan)
Comment on attachment 8546430 [details] [diff] [review]
0001-1119670-Implement-processing-of-scope-member-of-web-.patch

Review of attachment 8546430 [details] [diff] [review]:
-----------------------------------------------------------------

Nice! Apologies for the delay.

::: dom/manifest/ManifestProcessor.jsm
@@ +143,5 @@
> +        expectedType: 'string',
> +        dontTrim: true
> +      },
> +      value = extractValue(spec);
> +    

Nit: please remove the trailing whitespace.  There's one at the end of this file too.

@@ +153,5 @@
> +      issueDeveloperWarning(msg);
> +      return undefined;
> +    }
> +
> +    if(scopeURL.origin !== docURL.origin){

Nit: space around the parenthesis, like:

if (foo) {

Also:

try {

} catch(e) {
}
Attachment #8546430 - Flags: review?(ehsan) → review+
(In reply to :Ehsan Akhgari (not reading bugmail, needinfo? me!) from comment #3)
> Comment on attachment 8546430 [details] [diff] [review]
> 0001-1119670-Implement-processing-of-scope-member-of-web-.patch
> 
> Review of attachment 8546430 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Nice! Apologies for the delay.

np Appreciate the review! 
 
> ::: dom/manifest/ManifestProcessor.jsm
> @@ +143,5 @@
> > +        expectedType: 'string',
> > +        dontTrim: true
> > +      },
> > +      value = extractValue(spec);
> > +    
> 
> Nit: please remove the trailing whitespace.  

Fixed throughout, including around ( ) and try catch. 

>There's one at the end of this file too.

I left the white space at the end as there is space separating each of the functions declared in this code already.

submitting a new patch with the fixes...
Keywords: checkin-needed
Just in case this is needed, I sent it again to try with the white space changes: 
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d87b634b0043
https://hg.mozilla.org/mozilla-central/rev/b0066a6e5865
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: